package me.zhengjie.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * debug模式，false：关闭；true：开启
 * @author xiahongbo
 * @description
 * @date 2022-08-17
 **/
@Data
@Component
public class DebugProperties {

    public static Boolean debug;

    public static String rysfz;

    @Value("${debug.value}")
    public void setDebug(Boolean debug) {
        DebugProperties.debug = debug;
    }

    @Value("${debug.rysfz}")
    public void setRysfz(String rysfz) {
        DebugProperties.rysfz = rysfz;
    }
}
